/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.agenda.model;

import com.agenda.model.entity.AmTbMedi;
import java.util.List;
import javax.ejb.EJB;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author Ronildo
 */
@WebService(serviceName = "MedicoWS")
public class MedicoWS {
    
    @EJB
    private MedicoPersistence medicoPesistence;

    @WebMethod(operationName = "insert")
    public void insert(@WebParam(name = "medico") AmTbMedi medico) {
        medicoPesistence.insert(medico);
    }
    
    /*@WebMethod(operationName = "delete")
    public void delete(@WebParam(name = "medico") AmTbMedi medico) {
        medicoPesistence.delete(medico);
    }
    @WebMethod(operationName = "update")
    public void update(@WebParam(name = "medico") AmTbMedi medico) {
        medicoPesistence.update(medico);
    }
    
    @WebMethod(operationName = "findById")
    public void findById(@WebParam(name = "id") Long id) {
        medicoPesistence.findById(id);
    }
    
    @WebMethod(operationName = "list")
    public List<AmTbMedi> list(@WebParam(name = "medico") AmTbMedi medico) {
        return medicoPesistence.list(medico);
    }*/
}
